package com.hqyj.service.impl;

import com.hqyj.pojo.TbCommunity;
import com.hqyj.dao.TbCommunityMapper;
import com.hqyj.service.TbCommunityService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 小区表 服务实现类
 * </p>
 *
 * @author gp
 * @since 2021-09-25
 */
@Service
public class TbCommunityServiceImpl implements TbCommunityService {

    @Autowired
    TbCommunityMapper tbCommunityMapper;

    @Override
    public List<TbCommunity> getCommunityWithBuild() {
        return tbCommunityMapper.getCommunityWithBuild();
    }

    @Override
    public List<TbCommunity> getCommunities() {
        return tbCommunityMapper.getCommunities();
    }
}
